
package com.bei_en.teacher.admin.model.education.vo;

import java.util.*;

import com.bei_en.teacher.admin.model.education.bean.Education;
import com.bei_en.teacher.admin.model.BaseVo;

import javax.validation.constraints.*;

import org.hibernate.validator.constraints.*;

import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-9-25 10:06:59
 */
public class EducationVo extends BaseVo {

    private Education education;

    public EducationVo() {

    this.education = new Education();
    }

    public EducationVo(Education education) {

    this.education = education;
    }
    
    public Education getEducation() {

    return this.education;
    }
    
    public void setEducation(Education education) {

    this.education=education;
    }
	public Integer getOrderBy() {
		return education.getOrderBy();
	}

	public void setOrderBy(Integer orderBy) {
		this.education .setOrderBy(orderBy);;
	}
        public Integer getId() {
            return this.education.getId();
        }
        public void setId(Integer id) {
            this.education.setId(id);
        }
        

        
        public void setName(String value) {
    	this.education.setName(value);
        }
	@Length(max=12)
    public String getName() {
        return this.education.getName();
    }
        
        public void setParent(Integer value) {
    	this.education.setParent(value);
        }
	
    public Integer getParent() {
        return this.education.getParent();
    }
        
    public void setCreateTime(Date value) {
        this.education.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.education.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
        
        public void setProvinceId(Integer value) {
    	this.education.setProvinceId(value);
        }
	
    public Integer getProvinceId() {
        return this.education.getProvinceId();
    }
        
        public void setCityId(Integer value) {
    	this.education.setCityId(value);
        }
	
    public Integer getCityId() {
        return this.education.getCityId();
    }
        
        public void setAreaId(Integer value) {
    	this.education.setAreaId(value);
        }
	
    public Integer getAreaId() {
        return this.education.getAreaId();
    }
    


}